#include "ftpfile.h"


FTPFile::FTPFile()
{
    updated = false;
	old_version.int_version = 0;
	new_version.int_version = 0;
}

void FTPFile::setConfigName(const QString &s)
{
	config_name = s;
}

void FTPFile::setLocalPath(const QString &s)
{
	local_path = s;
}

void FTPFile::setFtpPath(const QString &s)
{
	ftp_path = s;
}

void FTPFile::setExecuteCommand(const QString &s)
{
	execute_cmd = s;
}

void FTPFile::setUpdated(bool upd)
{
	updated = upd;
}

void FTPFile::setOldVersion(Version v)
{
	old_version = v;
}

void FTPFile::setNewVersion(Version v)
{
	new_version = v;
}

const QString &FTPFile::getConfigName()
{
	return config_name;
}

const QString &FTPFile::getLocalPath()
{
	return local_path;
}

const QString &FTPFile::getFtpPath()
{
	return ftp_path;
}

const QString &FTPFile::getExecuteCommand()
{
	return execute_cmd;
}

bool FTPFile::isUpdated()
{
	return updated;
}

Version FTPFile::getOldVersion()
{
	return old_version;
}

Version FTPFile::getNewVersion()
{
	return new_version;
}
